package com.itheima.login;

import java.util.Objects;

public class User implements LoginStrategy{
    private String passId;
    private String getPassWorld;

    public User() {
    }

    public User(String passId, String getPassWorld) {
        this.passId = passId;
        this.getPassWorld = getPassWorld;
    }

    public String getPassId() {
        return passId;
    }

    public void setPassId(String passId) {
        this.passId = passId;
    }

    public String getGetPassWorld() {
        return getPassWorld;
    }

    public void setGetPassWorld(String getPassWorld) {
        this.getPassWorld = getPassWorld;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(passId, user.passId) && Objects.equals(getPassWorld, user.getPassWorld);
    }

    @Override
    public int hashCode() {
        return Objects.hash(passId, getPassWorld);
    }

    @Override
    public String toString() {
        return "User{" +
                "登录账号：'" + passId + '\'' +
                ", 登录密码： '" + getPassWorld + '\'' +
                '}';
    }

    @Override
    public void login() {

    }
}
